<?php

require_once 'Zend/Db/Table/Rowset.php';

class Naneau_Db_Table_Rowset extends Zend_Db_Table_Rowset_Abstract {

    public function toStringArray() {
        $array = parent::toArray();

        $info = $this->_table->info();
        $keys = $info['cols'];

        for ($x = 0, $length = count($array); $x < $length; $x++) {
            for ($y = 0, $length_inner = count($keys); $y < $length_inner; $y++) {
                $array[$x][$keys[$y]] = (string) $this->_table->getModifiedValue($this, $keys[$y], $array[$x][$keys[$y]]);
            }
        }

        return $array;
    }
}